<template>
	<view class="iSpop">
		<view class="iSpopTitle">{{title}}</view>
		<view class="iSpoptext">
			{{text}}
		</view>
		<view class="iSpopbutton">
			<button @click="$emit('clickleft')">{{left}}</button>
			<button @click="$emit('clickright')">{{right}}</button>
		</view>
	</view>
</template>

<script>
	export default {
		name:"iSpop",
		data() {
			return {
				
			};
		},
		props:{
			title:{
				type:String,
				default:'提示'
			},
			text:{
				type:String,
				default:'是否确定取消订单？'
			},
			left:{
				type:String,
				default:'取消'
			},
			right:{
				type:String,
				default:'确定'
			},
		},
	}
</script>

<style lang="scss" scoped>
	.iSpop{
		.iSpopTitle{
			text-align: center;
			font-weight: bold;
			font-size: 32rpx;
			color: #323233;
		}
		.iSpoptext{
			text-align: center;
			font-weight: bold;
			font-size: 28rpx;
			color: #323233;
			margin: 40rpx 0 60rpx 0;
		}
		.iSpopbutton{
			display: flex;
			align-items: center;
			>button:last-child{
				margin: 0 auto;
				background-color: #F7BC1C;
				line-height: 72rpx;
				height: 72rpx;
				width: 220rpx;
				border-radius: 100rpx;
				font-size: 28rpx;
				color: #333333;
				font-weight: bold;
			}
			>button:first-child{
				margin: 0 auto;
				background-color: #F0F1F5;
				line-height: 72rpx;
				height: 72rpx;
				width: 220rpx;
				border-radius: 100rpx;
				font-size: 28rpx;
				color: #333333;
				font-weight: bold;
			}
		}
	}
</style>